package com.dz.lm.dao.usermessage.write;

import com.dz.lm.common.exception.DaoException;
import com.dz.lm.common.utils.stereotype.WriterRepository;
import com.dz.lm.domain.usercollection.UserCollection;
import com.dz.lm.domain.usermessage.UserMessage;

import java.util.Map;

@WriterRepository("writeUserMessageDao")
public interface UserMessageDao {
    int deleteByPrimaryKey(Integer messageId)throws DaoException;

    int deleteByUser(Map map)throws DaoException;

    int updateStatus(Map map)throws DaoException;


    int insertSelective(UserMessage userMessage)throws DaoException;

    int updateByPrimaryKeySelective(UserMessage record)throws DaoException;

}